setup vwfi correctly on cpu0
authorStefano Stabellini <sstabellini@kernel.org>
Fri, 31 Mar 2017 22:37:07 +0000 (15:37 -0700)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 3 Apr 2017 20:41:04 +0000 (13:41 -0700)
commitb32d442abd92cdd4d8f2a2e7794cfee9dba7fe22
tree64a7d820d0cbd1e58f9b03a4a19b51bc3247b00f
parent80f9c316708400cea4417e36337267d3b26591db
setup vwfi correctly on cpu0

parse_vwfi runs after init_traps on cpu0, potentially resulting in the
wrong HCR_EL2 for it. Secondary cpus boot after parse_vwfi, so in their
case init_traps will write the correct set of flags to HCR_EL2.

For cpu0, fix the issue by changing HCR_EL2 setting from a new
presmp_initcall.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/traps.c